package com.unionpay.mpds.service.impl;

import org.springframework.stereotype.Service;
import org.springframework.beans.factory.annotation.Autowired;
import java.util.List;
import java.util.Map;
import com.unionpay.mpds.util.Pager;
import com.unionpay.mpds.dao.TransTypeDao;
import com.unionpay.mpds.model.TransType;
import com.unionpay.mpds.service.TransTypeService;

/**
 * 
 * @description 自动生成 service
 *
 */
@Service
public class TransTypeServiceImpl extends BaseServiceImpl implements TransTypeService {
	
	@Autowired
	private TransTypeDao transTypeDao;
	
	
	
	
	
	//====================== 基本 C R U D 方法  ===========================
	public TransType get(Integer id) {
		return transTypeDao.get(id);
	}
	
	public List<TransType> getAll() {
		return transTypeDao.findAll();
	}
	
	public List<TransType> findByParam(int size, Map<String, Object> params) {
		return transTypeDao.findListByParamMap(size, params);
	}
	
	public Pager<TransType> findPager(int pageNo, int pageSize, Map<String, Object> params) {
		return 	transTypeDao.findByParamMap(pageNo, pageSize, params);
	}
	
	public void save(TransType entity) {
		transTypeDao.save(entity);
	}
	
	public void update(TransType entity) {
		transTypeDao.update(entity);
	}
	
	public void delete(Integer id) {
		transTypeDao.delete(id);
	}
	
}

